package cn.dugcrs.org.service.impl;

import cn.dugcrs.basic.service.impl.BaseServiceImpl;
import cn.dugcrs.org.domain.Employee;
import cn.dugcrs.org.domain.Systemdictionarytype;
import cn.dugcrs.org.mapper.DetailMapper;
import cn.dugcrs.org.mapper.EmployeeMapper;
import cn.dugcrs.org.mapper.TypeMapper;
import cn.dugcrs.org.service.IEmployeeService;
import cn.dugcrs.org.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
/**
* @Description:
* @Author: Gubcog
* @Version: 1.0
* @Date:  2022/4/19 18:39  
*/
public class TypeServiceImpl extends BaseServiceImpl<Systemdictionarytype> implements ITypeService {

    @Autowired
    private TypeMapper typeMapper;

    @Autowired
    private DetailMapper detailMapper;


    // 模块的的接口继承而来
    @Override
    @Transactional
    public void remove(Long id) {
        typeMapper.remove(id);
        detailMapper.removes(id);
    }

    @Override
    @Transactional
    public void batchRemove(List<Long> ids) {
        typeMapper.batchRemove(ids);
        detailMapper.batchRemoves(ids);
    }


    // 模块的其他接口在此编写

}
